// react + ts
// 根据初始值自动推断

import { useState } from "react"

function App01() {
  const [value, toggle] = useState(false)

  const [list, setList] = useState([1, 2, 3])

  const changeValue = () => {
    toggle(true)
  }

  const changeList = () => {
    setList([4,5,6])
  }

  return (
    <>
      this is app {value}
    </>
  )
}

export default App01
